﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Zhongchouwwwww.Models;
using Zhongchouwwwww.Config;

namespace Zhongchouwwwww
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        public string username = "";
        public string imgurl = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //var name= Response.Cookies.Get("username");
                //var id= Response.Cookies.Get("userid");
                //username = name.Value;
                //userid = id.Value;
                username = Config.Config.ThisUser.UserName;
                imgurl = Config.Config.ThisUser.UserImg;
            }
            catch (Exception)
            {
                username = "";
              
            }
            
        }

        protected void Unnamed_Click(object sender, EventArgs e)
        {
            if ("".Equals(sousuoTxt.Text))
            {
                Response.Write("<script>alert('请输入查找关键词')</script>");
            }
            else
            {
                Response.Redirect($"BrowseProject.aspx?sousuo={sousuoTxt.Text}");
            }
            
        }
    }
}